package com.example.myapplication;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.text.Spannable;

import androidx.annotation.Nullable;

public class DBhelper extends SQLiteOpenHelper {
    private static final int VERSION=1;
    private static final String DB_NAME="myrate,db";
    public static final String TB_NAME="tb_rates";
    public DBhelper(@Nullable Context context){
        super(context,DB_NAME,null,VERSION);
    }
    public void onCreate(SQLiteDatabase db){
        db.execSQL("CREATE TABLE "+TB_NAME+"(ID INTENGER PRIMARY KEY AUTOINCREMENT,CURNAME TEXT,CURRATE TEXT)");

    }
    public void onUpgrade(SQLiteDatabase sqLiteDatabase,int i,int i1){

    }
}
